<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="java.util.*,com.hk.dao.*" %>
<%
	request.setCharacterEncoding("utf-8");
	response.setCharacterEncoding("utf-8");
	String firstName = request.getParameter("titlename");	//接收客户端传过来的一级标题
	
	FirstTitleDAO ftd = new FirstTitleDAO();	//实例化对象 处理一级标题
	int n = ftd.insert(firstName, "江南");
	if(n>0)
		response.sendRedirect("onetitle_sucess.html"); 
	else 
		response.sendRedirect("onetitle.html");
%>

